<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-09-17 09:32
 *
 * Version: 2.0
 */

namespace App\Modules\Employee\Validators;


class PortfolioControllerValidator
{
	public static function validator(){
		return [
			'addPortFolio' => [
				'name' => [
					'title' => "作品集名称",
					'rule' => 'required',
					'message' => []
				],
				'service_id' => [
					'title'  => '服务ID',
					'rule'   => 'required|numeric',
					'message' => []
				],
				'resource_id' => [
					'title'  => '资源id',
					'rule'   => 'required|numeric',
					'message' => []
				],
//				'desc' => [
//					'title'  => '描述',
//					'rule'   => 'required',
//					'message' => []
//				],
				'store_id' => [
					'title'  => '店铺Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'editPortfolio' => [
				'name' => [
					'title' => "作品集名称",
					'rule' => 'required',
					'message' => []
				],
				'service_id' => [
					'title'  => "服务ID",
					'rule'   => 'required|numeric',
					'message' => []
				],
				'resource_id' => [
					'title'  => "资源id",
					'rule'   => 'required|numeric',
					'message' => []
				],
//				'desc' => [
//					'title'  => "作品描述",
//					'rule'   => 'required',
//					'message' => []
//				],
				'store_id' => [
					'title'  => '店铺Id',
					'rule'   => 'required|numeric',
					'message' => []
				],
				'portfolio_id' => [
					'title'  => '作品Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'getPortfolioList' => [
				'store_id' => [
					'title' => "店铺ID",
					'rule' => 'nullable|numeric',
					'message' => []
				],
				'barber_id' => [
					'title'  => "理发师ID",
					'rule'   => 'nullable|numeric',
					'message' => []
				],
				'page_size' => [
					'title'  => "页面大小",
					'rule'   => 'nullable|numeric',
					'message' => []
				],
				'keyword' => [
					'title'  => "查询关键字",
					'rule'   => 'nullable',
					'message' => []
				]
			],
			'getPortfolioListApp' => [
				'store_id' => [
					'title' => "店铺ID",
					'rule' => 'required|numeric',
					'message' => []
				],
				'page_size' => [
					'title'  => "页面大小",
					'rule'   => 'nullable|numeric',
					'message' => []
				],
			],
			'delPortfolio' => [
				'portfolio_id' => [
					'title'  => '作品Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'likePortfolio' => [
				'portfolio_id' => [
					'title'  => '作品Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'unlikePortfolio' => [
				'portfolio_id' => [
					'title'  => '作品Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'getAppointmentBg' => [
				'portfolio_id' => [
					'title'  => '作品Id',
					'rule'   => 'required|numeric',
					'message' => []
				]
			],
			'getNewLikePortfolio' => [
				'page_size' => [
					'title'  => "页面大小",
					'rule'   => 'nullable|numeric',
					'message' => []
				],
			]
		];
	}
}